import { AppRegistry } from 'react-native';
import App from './App';
import FlatListDemo from './pages/FlatListDemo';
import SectionListDemo from './pages/SectionListDemo';
import SwipeFlatListDemo from './pages/SwipeFlatListDemo';
import SectionListDemoT from './pages/SectionListDemoT';
import {StackNavigator} from 'react-navigation';

const AppRoot = StackNavigator({

    App:{
        screen:App,
    },
    FlatListDemo:{
        screen:FlatListDemo,
        navigationOptions:{
            title:'FlatListDemo'
        }
    },
    SwipeFlatListDemo:{
        screen:SwipeFlatListDemo,
        navigationOptions:{
            title:'SwipeFlatListDemo'
        }
    },
    SectionListDemoT:{
        screen:SectionListDemoT,
        navigationOptions:{
            title:'SectionListDemoT'
        }
    },
    SectionListDemo:{
        screen:SectionListDemo,
        navigationOptions:{
            title:'SectionListDemo'
        }
    },

})

AppRegistry.registerComponent('ImoocChapterThree', () => AppRoot);
